<@pp.dropOutputFile/>
<#include "../common/validation.ftl">

<#-- generate package name -->

<#-- iterate table list-->
<#list doc.tables as table>
<#assign module = doc.artifactid?replace(".", "/") + "/" + table.moduleid?uncap_first>
<#assign fileName = table.name?cap_first>
<#assign data_url = module + "/" + fileName>
<@pp.changeOutputFile name="/main/webapp/" + data_url + "/showimport_js.ftl"/>
$(function(){
});
	
function importData(){
	$.post("<#noparse>${base}</#noparse>/${module}/${fileName}/import.action",
	$("#import_form").serializeArray(),
	function(data){
		showTip(data.message);
	},
	"json");
}

</#list>